<? 
	error_reporting(E_ALL);
	require_once "../../commons/includes/authentication.inc"; 	
	require_once "../../commons/includes/editjs.inc"; 
	require_once "../../commons/includes/stringutils.inc"; 
	
	//recupero il recordset determinando il filtro dalla request
	require_once "../../commons/includes/connection.inc"; 
	
	$da = StringUtils::dateStringToString($_REQUEST["from_date"]);
	if("$da"=="") $da = date("Ymd");
	$a = StringUtils::dateStringToString($_REQUEST["to_date"]);
	
	if("$a"=="") $a = $da;
	
	$tipo=$_REQUEST["tipo"];
	
	if("$tipo"=="ME") include_once "media.inc"; 	
	else if("$tipo"=="VA") include_once "varianza.inc"; 	
	else if("$tipo"=="AT") include_once "aggiornats.inc"; 	
	
		
?>
	<script>
		document.location = "list.php";
	</script>	
</body>
</html>